// index.js
Page({
  data:{
    // banner数据
    banner:[
      {text:'鱼肉豆腐的做法大全',count:95,src:'01.jpg'},
      {text:'银耳汤的做法大全',count:56,src:'02.jpg'},
      {text:'黄瓜炒肉的做法大全',count:47,src:'03.jpg'},
      {text:'日式寿司的做法大全',count:13,src:'04.jpg'},
      {text:'减脂餐的做法大全',count:18,src:'05.jpg'},
      {text:'意大利面的做法大全',count:32,src:'06.jpg'},
      {text:'沙拉的做法大全',count:108,src:'07.jpg'}
    ],
    // 早中晚餐精选菜谱数据
    menu:[
      {text:'早中晚餐',description:'每日三餐推荐',src:'sun.jpg'},
      {text:'精选菜谱',description:'一周精选菜谱',src:'sun.jpg'}
    ],
    // 热门推荐数据
    hot:[
      {text:'甜品',src:'01.jpg'},
      {text:'炒菜',src:'02.jpg'},
      {text:'清淡',src:'03.jpg'},
      {text:'下饭菜',src:'04.jpg'},
    ],
    // 本周佳作数据
    masterpieces:[
      {text:'《#卷心菜#》#卷心菜豆腐卷#',name:'淡然6257',member:false,collect:68,browse:5.1,src:'05_1.jpg'},
      {text:'彩色饼干（新年甜品)',name:'橘子香味',member:true,collect:354,browse:6.8,src:'06_1.jpg'},
      {text:'蔓越莓牛轧糖(微波炉版)',name:'倾听-小熙',member:true,collect:3618,browse:16.5,src:'07_1.jpg'},
      {text:'迷你水晶粽',name:'幸福小精灵静静',member:true,collect:1242,browse:15.9,src:'08_1.jpg'},
      {text:'豆角炒腊肠',name:'田金涛-香哈金牛座',member:true,collect:5897,browse:113.5,src:'09_1.png'},
      {text:'辣椒炒鱿鱼',name:'心蓝',member:true,collect:299,browse:13.1,src:'10_1.jpg'},
      {text:'蒸南瓜饼',name:'倾听-小熙',member:true,collect:2275,browse:49.2,src:'11_1.jpg'},
      {text:'经典意大利肉酱面',name:'紫水晶-静等花开',member:true,collect:1821,browse:24.2,src:'12_1.jpg'},
      {text:'奶香蓝莓地瓜泥',name:'浅相遇9',member:true,collect:133,browse:5.7,src:'13_1.jpg'},
      {text:'芝士香芋培根卷',name:'秋禧',member:true,collect:1743,browse:8.0,src:'14_1.jpg'},
      {text:'白灼墨鱼',name:'鲜入为煮',member:true,collect:1280,browse:44.1,src:'16_1.jpg'},
      {text:'水晶汤圆',name:'清雅小厨',member:false,collect:375,browse:10.3,src:'17_1.jpg'},
      {text:'健康免烤快手的 红枣胡萝卜蛋糕',name:'Summer_sweet',member:true,collect:2134,browse:11.4,src:'18_1.jpg'},
      {text:'川北凉粉',name:'踏雪花',member:true,collect:314,browse:7.0,src:'19_1.jpg'},
      {text:'云朵芒果桃胶羹',name:'云朵的小厨',member:true,collect:919,browse:7.1,src:'20_1.jpg'},
    ]
  },
  // 点击搜索框跳转到搜索详情页
  ToSearchDetails(){
    wx.navigateTo({
      // 注意不要加后缀名.wxml
      url: '../SearchDetails/SearchDetails',
    })
  },
  // 点击查看全部跳转到分类tab页
  ToClassify(){
    wx.switchTab({
      url: '../classify/classify',
    })
  }
})